package vodoo.Test;

import java.io.IOException;

import vodoo.catalog.CatalogManager;
import vodoo.catalog.network.ParseCatalogException;
import vodoo.video.network.ProtocolFactory;

public class MainTestCatalog
{

	/**
	 * @param args
	 * @throws IOException 
	 * @throws ParseCatalogException 
	 */
	public static void main(String[] args) throws IOException, ParseCatalogException
	{
		
		CatalogManager myCatalogManager = new CatalogManager(); 
		
		
		
		myCatalogManager.StartMCAST("225.6.7.8", 4567);
		
		//ProtocolFactory.getInstance().getProtocolAvailable();
		
		
		
//		CatalogManager myCatalogManager = new CatalogManager(); 
//		
//		myCatalogManager.GetHttp("127.0.0.1", 8082);
//		
		int i = 0;
		i=i+1;
	    
//	    ConsoleHandler handler = new ConsoleHandler();
//	    handler.setLevel(Level.ALL);
//		
//		Logger.getLogger("network.tcppull").setLevel(Level.ALL);
//		Logger.getLogger("network.tcppull").setUseParentHandlers(false);
//		Logger.getLogger("network.tcppull").addHandler(handler);
//		
//		byte[] ipServer = {127,0,0,1};		
//		StreamReader stream = new TCPPullStreamReader(ipServer,11113,(float)1.5,"5");
//		stream.connect();
//		stream.start();
//		
//		try
//		{
//			Thread.sleep(10000);
//		}
//		catch(Exception e )
//		{
//			
//		}
		
		
		
//		StreamReader stream = new TCPPullStreamReader("127.0.0.1",8088,(float)1.5,"video1");
//		stream.StartStream();
//		
//		try
//		{
//			Thread.sleep(10000);
//		}
//		catch(Exception ex )
//		{
//			ex.printStackTrace();
//		}
		
		

	}

}
